FROM oracle-java
MAINTAINER moweilin@live.com
#ENV  TAR_FILE_NAME  hello-server-0.0.1-SNAPSHOT
ENV JAR_FILE hello-server-0.0.1-SNAPSHOT-all.jar
WORKDIR /opt/app
#COPY build/distributions/${TAR_FILE_NAME}.tar ./
COPY build/libs/${JAR_FILE} ./hello-server.jar
EXPOSE 8080
CMD ["/usr/bin/java","-jar", "hello-server.jar"]